What affects continence after anterior resection of the rectum?