Theranos and its founder, once a Silicon Valley darling who set out to shake up the blood testing industry with the prick of a finger, agreed to settle "massive fraud" charges, according to the Securities and Exchange Commission.