How can dementia cause other health problems?