Artificial intelligence could transform the global workforce sooner than expected and may replace up to 40 per cent of jobs, OpenAI CEO Sam Altman has warned.