Gold reached a record as the latest escalation of global trade tensions left nervous investors seeking safe havens.