Canada's main stock index suffered a broad-based pullback on the final Monday of 2024, while U.S. markets also fell.