Toshiba decides to sell its semiconductor unit to a consortium of Japanese, US and South Korean firms.