Primary care contacts, continuity, identification of palliative care needs, and hospital use: a population-based cohort study in people dying with dementia