China says the United States has left an “awful mess” in Afghanistan after the Taliban seized control of the country 20 years after the militants were removed from power following a US-led invasion.