Ordinary, transition, and Knudsen regime diffusion in random capillary structures