Iran says it is closing the key waterway again, prompting a warning by the US president.