Transport theory of deeply inelastic heavy-ion collisions based on a random-matrix model. i. Derivation of the transport equation