S&P 500, Dow retreat from record highs after bleak jobless data