Barcelona were given a controversial penalty against Alaves in La Liga for a foul on Gerard Pique by Rodrigo Ely.