A German court has sparked outrage among both Jewish and Muslim communities in the country after it ruled that circumcision was illegal.