Statistics for Planck 2018 results: V. CMB power spectra and likelihoods