Dow and S&P 500 end week at fresh record closes