Symmetries of the hyperbolic shallow water equations and the Green–Naghdi model in Lagrangian coordinates