China has sharply curbed its purchases of U.S. Treasuries, official data showed.