Nasdaq, S&P 500 scale new peaks as focus turns to earnings, economic data