A new study suggests that the amount of attention paid to Donald Trump online helps predict optimism on Wall Street.