Artificial intelligence could threaten up to 300 million jobs, a Goldman Sachs report finds amid concerns about the tech's impact.