The Bank of Canada raised its benchmark interest rate to a 22-year high of 5% in July to tackle inflation.