Inflammatory bowel disease is associated with higher dementia risk: a nationwide longitudinal study