Looks to me that Avast is working like it should.

You mention that it only happens while browsing. It could be a temporary file.
I would say, run a boot scan and make sure that your systems security is properly setup.
You also may want/need to change your browsing behaviour.