The British government will end education visas to nationals from Afghanistan, Cameroon, Myanmar and Sudan.