The latest boost to oil prices came after US President Donald Trump said Washington was exploring measures to safeguard tanker traffic through the Strait of Hormuz.