Subleading power resummation of rapidity logarithms: the energy-energy correlator in N = 4 SYM