Finite-element approximation of a nonlinear degenerate parabolic system describing bacterial pattern formation