Radiative heat transfer in many-body systems: Coupled electric and magnetic dipole approach