Smarter People are Happier with Fewer Friends. Here's why