S&P 500 posts longest winning streak since 1995 as tech drives record highs