The United Nations in Afghanistan says more than 10,000 civilians were killed or injured as a result of conflict in 2017.