Road to inauguration will be rocky if US election result is contested – with legal fights a certainty