Research shows recessions are brutal for the national mood, but there are steps you can take to insulate yourself from the misery.