Governments must act now to head off backlash against migrants