Real Madrid have lost a court battle for €6 million in compensation over a Catalan advert depicting Pepe as Hannibal Lecter.