China's trade with US shrinks in October despite optimism