S&P 500 stalls in midterm election year despite 34% earnings growth