Germany signs 'historic' deal to reintroduce military rabbis