Hi thanks for your question.
From the symptoms it looks like that you have got infection of your rectum
what is called as proctitis
,which is giving you symptoms you have described. Bleeding could be part of infection or could be due to piles.I would suggest you to consult a physician, who may be able to perform proctoscopy/sigmoidoscopy
on you to determine exact cause of your symptoms. Accordingly he/she may prescribe you treatment.
Hope this answers your question