Apple, Amazon, Google and Facebook have spent billions on sparkling new offices. Now they are almost empty