The S&P 500 is breaking records, but a microscopic fraction of tech firms is masking a dangerously narrow market and a lagging industrial base.