Tim Cook, who helped make Apple one of the world’s most valuable firms, will step down as chief executive after 15 years in the role. On September 1, he will hand over the reins to John Ternus.