Silicon Valley claims to know the future. So why did it get the midterms so wrong? For an industry obsessed with pattern recognition, their decision to lash themselves to President Trump has proved to be a…