Barcelona have failed with their legal bid to register Dani Olmo ahead of the January transfer window.