Diphoton production at hadron colliders : a fully-differential QCD calculation at NNLO