A 51-year-old man presents with occasional severe cramping rectal pain which wakes him at night and lasts a few minutes. This has been going on for a couple of years and in between he is fine. There's no rectal bleeding, no bowel habit change, and rectal examination is normal. What is the diagnosis?