An Infrared Multiplicity Survey of Class I/Flat-Spectrum Systems in the ρ Ophiuchi and Serpens Molecular Clouds