Hospital admissions of people with dementia and people living in care homes : associated factors and potentially preventable hospitalisations