what causes irrational thinking