Despite the political drama surrounding U.S. elections, stocks have historically risen following midterms, market data shows.