Hospital networks restored after cyberattack