Bleeding per rectum is usually caused by hemorrhoids if it is painless and by anal fissure if it is painful.
Both these conditions occur due to chronic constipation and straining during defecation.
Next Steps
Meet a good surgeon around you and get urself examined.
Health Tips
Take high fibre diet with lots of water...you can take isabgol husk in night so as to get rid of constipation.