Lamb-dip spectroscopy of buffer-gas-cooled molecules