Spanish champions Barcelona will study "all legal possibilities" after feeling they were wronged by Gabriel Barbosa's move from Santos to Inter.