Infrared and submillimetre observations of the ρ Ophiuchi dark cloud