How automatic thoughts shape our financial habits