Politicians, social media and far-right agitators convinced people that migrant-targeting violence would solve all their problems