Scientists at Harvard University have developed an app that focuses on breaking cycles of negative thoughts that contribute to depression.