A statistical model for field emission in superconducting cavities