Decades of wellness studies have identified a formula for happiness, but you won’t figure it out alone.