The Federal Opposition leader Peter Dutton is vowing to rebuild the Liberal party after an historic by-election defeat