Thousands of Germans have protested in Berlin and other cities against the rise of the far-right and anti-immigrant Alternative for Germany (AfD) party ahead of a February 23 general election.