The Palestinian flag has been raised at the United Nations headquarters in New York for the first time.