US presidential nominee Hillary Clinton poked fun at rival Donald Trump and at herself at a charity dinner in New York.