America’s trade deficit grew to its widest in nine months in October as net imports from China and the European Union increased by nearly $3 billion.