Xinhua commentary says US president wrong to attack Beijing over efforts to rein in Pyongyang’s nuclear weapons programme