Does it help when you disable the resident protection of avast! If not, does it help when you uninstall avast?
It’s really strange… I don’t know how avast! could influence your mouse. What type of mouse is it, anyway?