UN says Palestinians, Israelis reach deal on Gaza reconstruction