India banned wheat exports, saying that its food security is under threat as a record-shattering heatwave damaged crops and domestic prices jumped to an all-time high.