Shear stresses and mean flow in shoaling and breaking waves