The US trade deficit in goods and services increased 1.7% in August from a month earlier, as exports rose but imports increased further - with China again seeing a widening gap.