The announcement came hours after Iran warned London and Paris against sending warships to the Strait of Hormuz.