Ministers are weighing up the possibility of converting female spaces to male in the next few months as they look to cut the number of women behind bars