Barack Obama has cautioned Donald Trump against allowing relations with China to slip into “full conflict mode” after the president-elect put Beijing’s nose out of joint with a succession of controversial pre-inauguration foreign policy interventions.