It turns out money can buy happiness, but only if you spend it the right way