US government agencies hit in global cyberattack