China’s foreign exchange reserves dropped for the first time in three months amid a weakening yuan, official data showed.