how to stop irrational thoughts