Predictors of quality of life and attitude to ageing in older adults with and without dementia