A density matrix approach to correlation in a uniform electron gas