German bishops elect female general secretary amid abuse-dominated meeting