The success of the far-right AfD is a ‘final warning’ to democratic parties, the winner of Germany’s election warns