Search for pair-produced resonances decaying to jet pairs in proton-proton collisions at sqrt(s) = 8 TeV