Johnson & Johnson announced Tuesday that William C. Weldon would retire in April as its chief executive.