causes of negative thinking