Age and gender influence dementia risk