The death toll from a stampede at a Hindu festival in northern India has risen to at least 30.