Gold rose to near a record high as the dollar fell after President Donald Trump signaled a less aggressive approach to China.