Eli Lilly is withdrawing one of its drugs from the market after clinical trials showed it to be ineffective.