Coffee is not harmful to the heart, with people able to safely drink up to 25 cups a day, a study funded by the British Heart Foundation has found.