Barcelona star Javier Mascherano has pleaded guilty to tax fraud, after appearing in a Spanish court on Wednesday.