Yahoo to spin off main business into separate company