Record number of Afghan civilian casualties in attacks in 2017: UN