China reports 40 new coronavirus cases in mainland, 27 in Beijing