The US has attacked an oil tanker in the Gulf, which it said was heading towards Iran’s largest oil export terminal, as it reimposed a blockade of Iranian ports.