Companies hiring more experts in artificial intelligence are seeing their stocks and bonds outperform this year, according to Barclays Plc.