A rainy day can ruin your mood, a downturn in investments can make you want to panic. Here\u2019s strategies to help avoid both.