Most of the militants in the Palestinian Yarmouk camp in southern Damascus have now withdrawn, a Palestinian official says.