Dementia could be detected via routinely collected data, new research shows