DySMHO: Data-Driven Discovery of Governing Equations for Dynamical Systems via Moving Horizon Optimization