Gold steadied near a record high, after investors flocked to safety when US President Donald Trump reiterated threats to impose tariffs on Mexico and Canada.