Apple says Tim Cook will become executive chairman and John Ternus CEO on Sept. 1, formalizing the iPhone maker leadership transition.