Tim Cook to step down as CEO, becoming executive chairman, with John Ternus to take over as CEO on September 1.