Elon Musk is planning to tap a new chief executive for Twitter by the end of the year.