China's exports and imports gathered momentum in August, as the world's second-largest economy faces mounting pressure to rebalance trade.