Measurement of dijet azimuthal decorrelation in pp collisions at sqrt(s) = 8 TeV