In Shake-Up, Apple’s Mobile Software and Retail Chiefs to Depart