Germany has returned remains from victims of a 20th century genocide to a Namibian delegation during a ceremony at a Berlin church.