As Donald Trump's policies rattle the economy, partisan identities are driving investors toward very different outlooks on the stock market.