Several thousand people have demonstrated against the rise of the far-right Alternative For Germany (AfD) party days before they take their seats in parliament.