The leader of the National Party, David Littleproud, has retained his position after an attempt to topple him failed this afternoon.