Japan's Toshiba says it will split into 3 firms