The Coalition has retained the Gold Coast seat in the federal by-election, triggered by the resignation of former frontbencher Stuart Robert.