China saw record outflows of foreign direct investment last year, an exodus that threatens to persist after the resumption of a trade war with the US.