Ground-state properties of a quasi-one-dimensional electron gas within a dynamical self-consistent mean-field approximation