Thousands of people have been relocated to the UK as part of a secret scheme set up after data on Afghans who supported British forces was leaked.