Acute hospital-based services used by adults during the last year of life in New South Wales, Australia: a population-based retrospective cohort study