Ternus will take over running the technology giant in September as Cook steps up to become executive chairman.