Polls have closed after record turnout, with final opinion polls suggesting challenger Péter Magyar could win.