thoughts can cause depression