Complete reducibility of rational representations of a matric group