Ruddock elected NSW Liberal president