Have you disabled avast! from the tray icon and then tried? By that I mean all shields.
If that doesn’t fix it, I doubt the problem is avast!
If it does, it must be the ports regarding SSL/TLS