Japan has dethroned China to be the top holder of U.S. government debt, as the Chinese central bank dipped into its currency reserves to support the yuan.