China's yuan weakens as dollar firms, exports disappoint