Spain's top prosecutor in court in leaks case