Local instabilities during capillary-dominated immiscible displacement in porous media