Iran has effectively stopped cargo traffic in the narrow Strait of Hormuz through which about a fifth of all oil is shipped.