Bacterial hopping and trapping in porous media