China has ousted the UK as the world’s fifth-largest arms exporter, mainly because of sales to Pakistan, a new report shows.