What role in medieval society might women have had the most chance to be powerful?

Prostitutes.