Previous psychiatric history as a risk factor for late-life dementia: a population-based case-control study.