(Reuters) - Intel Corp said it would spin out its cybersecurity division, formerly known as McAfee, and sell a majority stake in it to investment firm TPG for $3.1 billion in cash.