​A Spanish town has banned Muslims from using public facilities to celebrate religious festivals.