Lie symmetries and singularity analysis for generalized shallow-water equations