The billionaire CEO of Tesla and SpaceX, in his first appearance at Davos, framed AI and robotics as the best way to raise people’s standard of living.