Canada is set to slash the number of immigrants that it welcomes, in a sharp reversal for a country that bet big on immigration to boost economic prosperity.