All conformally flat Einstein–Gauss–Bonnet static metrics