The mass-concentration relationship of virialized haloes and its impact on cosmological observables