Investigation of anorectal function