Martinez leaves Juve for Cluj