Canada’s largest bank by assets is moving to protect itself as pain spreads through the mortgage market