Distribution-based framework for uncertainty quantification of flow in porous media