TORONTO — Canada's main stock index finished lower on Friday, while U.S. stock markets also retreated amid weakness in technology stocks.