Please, go to Control Panel > System > System restore > Disable it > click apply > Enable it again.
You will ‘delete’ all the restore points and with them the infected files there, locked by Windows and that cannot be cleaned by avast.

Hope this help.