Avast is not really a disk cleanup tool, so except for security "stuff", it is not useful for disk cleanup.
Do you need anything from your external backup? If not, then a complete Erase and Re-Format of your internal drive, and then a fresh, clean, "virgin" installation of OS 10.12.6 could resolve the issue. However, it might be best to then "migrate"/copy some stuff from your backup, specifically all the information associated with your admin/user account.
What software did you use for your backup?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.