What, may I ask was the anti virus you were using before you installed Avast? Did you use their removal tool to remove all the remnants?
If you did not, than that was probably the reason for all your problems. Either that or you were compromised before you installed Avast. I say this because your experience is obviously not normal.