China’s yuan weakens after signs of stability