Oil fell as President Donald Trump struck an optimistic tone on prospects for a permanent ceasefire between the US and Iran.