Germany's controversial drinks packaging return system may have to be shelved, after the European Court of Justice (ECJ) ruled it illegal.