Patients who listen to music after having an operation recover more quickly from their procedure, new research has concluded.