Variation in readmission and mortality following hospitalisation with a diagnosis of heart failure: prospective cohort study using linked data