A record number of civilian casualties was recorded in Afghanistan last year. The UN says 3,498 civilians died and 7,920 were injured in 2016.