The S&P 500 and Nasdaq Composite fell slightly on Monday, giving up earlier gains, amid concern about demand within the semiconductor industry.