The human heart has the ability to repair itself, scientists have found, in a breakthrough that could provide a lifeline for hundreds of thousands of patients.