Hello, Thank you for asking your query at DoctorSpring.
The only way your gym could have contributed is excessive sweat collected causing irritation to skin and anaerobic infection. Its good you have consulted a doctor and ruled out haemarrhoids.
I suggest you to maintain properly toiletry habits, as you have already specified you already do. Try this everyday, take a tub filled with luke warm water, add potassium permanganate. And sit in tub for half an hour everyday. Potassium permanganate is a known antiseptic. If there is any infection, it will heal. And continue using Bactroban as your gp has prescribed you. When cleaning your anal region, do so gently. Harsh cleaning can also lead to bruises and cuts.
If the itch still continues, you can take antihistaminics like Citrezene, once everyday for five days. Will bring down your itch. Try also taking a lot of yoghurt, if its yeast, it will disappear. There is nothing you have to be worried about.
Hope this helps. Please feel free to ask follow-up questions