President’s threat comes as ceasefire agreement with Iran comes to an end, with little progress on reopening the key international waterway