Chief executives speaking at a CNBC-hosted panel on "The Future of Work" sought to allay public concern about artificial intelligence.