Epidemiology of dementia: prevalence and incidence estimates using validated electronic health records from primary care