China has for the first time revealed the composition of its massive foreign-exchange reserves and the return on the investments it made with the money, part of what the foreign-exchange regulator said are efforts to improve transparency and confidence in the country’s economic and financial position.