Risk factors for incident heart failure in age- and sex-specific strata: a population-based cohort using linked electronic health records