Association of impaired kidney function with dementia and brain pathologies: A community‐based cohort study