Canada’s main stock index set a record high as oil prices rise