Toronto Mayor John Tory announces resignation after staffer affair