The CIA and other U.S. intelligence agencies have suffered a cyberattack following a separate FBI security breach and widespread system outages, raising fresh concerns about America’s cybersecurity defenses.