Competition between growth and shear stress drives intermittency in preferential flow paths in porous medium biofilms