US stocks surge to a record as investors breathe a sigh of relief at Trump and Xi’s trade-war truce