Oil prices rose nearly 5% on Tuesday as fears of attacks on shipping in the Strait of Hormuz grew while US and Chinese demand indicators improved.