Population-attributable fractions of risk factors for all-cause dementia in China rural and urban areas: a cross-sectional study