Galerkin lumped parameter methods for transient problems