Three-loop four-point correlator in N=4 SYM