President Donald Trump tillskrev en stor börsnedgång till demokratiska valsegrar, då stora index föll efter halvtidsresultatet.