A Trump effect and a lack of a coherent campaign saw opposition leader Peter Dutton lose the election.