Comb-assisted cavity ring-down spectroscopy of a buffer-gas-cooled molecular beam