US and China reach deal to slash tariffs, officials say