At least 27 people were killed in a stampede in north India's Uttar Pradesh state, local media reported.