Do patients have a worse outcome with heart failure than cancer? A primary care based cohort study with 10-year follow-up in Scotland