US authorities are investigating suspected Iranian involvement in cyberattacks targeting dozens of energy tankers worldwide, some of which received bomb threats.