Deposition in porous media and clogging