States that spend more on libraries, parks and highways have happier Americans: new study