Planck 2018 results. VII. Isotropy and statistics of the CMB