It is insufficiently recognised just how much the pendulum has swung against Silicon Valley in recent years. A couple of years ago, it was widely seen as heralding a glorious new technological era that would be a great boon for humanity