US stocks surge to a record on blockbuster tech earnings