Surprise tariff deal between US and China brings relief to markets