HC stays caste-based rallies in UP