Hundreds of thousands of people have marched across Germany to protest right-wing extremism, hate and social marginalisation, ahead of national elections.