Nursing home residents with cognitive impairment more likely to be admitted to hospital