Kate Forbes to quit Scottish government after leadership defeat