Chief Rabbi warns ‘hardest work lies ahead’, but cleric welcomes chance for return of hostages from destroyed city