Thank you for the query.
Likely you have an irritable bowel - constipation
Worthwhile getting an thyroid
function test as a cause of constipation and stool examined once. If abnormal need to see doctor urgently.
Can try taking isapgula husk and see if you feel better, it is usually available over the counter.
If you are loosing weight, have blood in stools need to see doctor.