The U.S. trade deficit narrowed in April as exports jumped to a record high — a trend that, if sustained, puts trade on course to contribute to economic growth this quarter.