European governments have responded to fears of terrorism and an influx of Muslim refugees by cracking down on basic freedoms, Human Rights Watch warns.