A prescription for the conditional mass function of dark matter haloes