Canada’s trade surplus widened in April as crude oil drove exports to a record high, while gold shipments declined sharply.