Eureka! After scouring for a while on the internet it appears that a couple of years ago people were having a problem with Sunbelt Kerio Personal Firewall and Avast, although personally I have used this firewall for around five years with no problems whatsoever. Anyway, as the firewall will be obsolete come the end of December, I decided to get rid of it now and install Comodo Firewall which seems to come highly recommended on here, the upshot being that all is working fine. I put restore point in place before installing Comodo and another before updating Avast. Comodo asked for a reboot, so did that and not a problem, installed avast and decided to close after the update and give it a few seconds before rebooting and everything is now fine. Hopefully it will stay that way and if I get any further problems then I will let you all know, but many thanks to everyone for helping out.
Just a quick edit, when I said install avast, I did this by updating the program, not with a fresh install.