Stock markets: Canada’s main stock index closes up