From potentially brand-damaging ethical risks to regulatory uncertainty, AI poses challenges for investors. But there is a path forward.