Secondary infall and the pseudo-phase-space density profiles of cold dark matter haloes