can anxiety cause bad thoughts