Stocks have performed well on average during election years, and historically, financial markets have rewarded investors who stay the course.