Oil prices surged to their highest since March as Iranian naval vessels shadowed a British-flagged tanker near the Strait of Hormuz.