Sixteen ounces of coffee a day cut the risk of heart failure, but 40 daily ounces of coffee upped the odds of ticker trouble. Katherine Harmon reports