It's totally normal for anyone who's been abused by someone female, and I'm including school bullying in that, to be phobic of women as a result.
Just like it is with people who've been abused more by men/boys being phobic of anyone male. No-one should be shamed for it. Unless they use bigotry to rationalise it, they've got nothing to be ashamed of.
Also, toxic friendships can have very similar effects to toxic relationships in that not only can they make you phobic but they can mean that you only "see" horrible people and keep attracting them for no apparent reason. It can become a vicious circle, with each bad experiece only serving to cement the negative feelings towards people.
And I think the same advice applies. If female friendships are something you want, and there's no law that says you have to want them, only cultural conventions, then start by minimising contact with any women who feed your negative feelings about their gender, then look at how this developed and what you can do to recover from it.
For me, the first step alone was enough for them to start appearing, though I keep working on the second as I want to be the best friend I can.
Also, it's interesting that others have mentioned autism; I don't necessarily get on with other autistic people very well, it depends on what traits they have, but all my female friends now are autistic too. I didn't go out of my way to befriend other autistic people, it's just more likely that we'll be into the same things and have similar communication and emotional needs.