The company’s Medicare business, hit by higher medical costs, pushed down CVS’s first-quarter earnings.