The U.S. is investigating Iran as the primary suspect in dozens of cyberattacks and bomb threats targeting as many as 50 energy tankers, raising fears of a wider conflict and major disruptions to global shipping.