Freeland announces resignation from cabinet, will run for seat in next election