Pessimism about old age may be a risk factor for dementia