Americans bought fewer foreign pharmaceuticals, cellphones and cars, and cut purchases of machinery and other supplies.