Iran has seized two ships in the Strait of Hormuz as the Pentagon warns clearing mines could take six months.