Check the Windows and avast log files and see if you can find more information.
If it happens again, check taskmanager and see if/what process is using a lot of resources.
Things like this may help to find the cause/solution.