Thinking in this way could impact your mental health, and now scientists have found links with cognitive decline.