The focus of the wide-ranging deal between Microsoft and Telefónica will be on blockchain and artificial intelligence, the companies say.