The rise of legal sports gambling is coming at the expense of stock investing, new study shows