China cedes top US creditor crown to Japan as yuan struggles