Donald Trump says the Iranian-flagged ship ignored warnings from the US Navy, but Iran says the action is piracy and breaches the ceasefire terms.