Temperatures passed 50 degrees Celsius in northern India as an unrelenting heatwave triggered warnings of water shortages and heatstroke.