The S&P 500 index is on track to broadly underperform foreign markets this year for only the second time in a decade.