Cyberattack affects hospitals in multiple states