how does anxiety affect thinking