Thousands of people died or went missing along global migration routes last year, the UN migration agency has reported.