Energy-energy correlation in hadronic Higgs decays: analytic results and phenomenology at NLO