Infrared polarimetry of dark clouds – II. Magnetic field structure in the ρ Ophiuchi dark cloud