Welcome to HCM,
From history it suggests that you might have fissure-in-ano giving rise to this problem.
There is also a possibility of having rectal prolapse
which again can cause pressure on anal sphincter and on urethra
Consult Gynaec and get examined.
Avoid fried and junk food.
Take plenty of water.
Ok and bye.