People who experience chronic stress and anxiety frequently have increased chances of developing depression and dementia, according to a study.