'Serious cyberattack' impacts phones, public safety systems in several Massachusetts towns