POD-Galerkin model order reduction for parametrized nonlinear time-dependent optimal flow control: an application to shallow water equations