The nation’s trade deficit rose 1.3% in September to a seven-month high as imports set a fresh record, confounding efforts by the Trump White House to bring deficits down.