India has banned exports of wheat effective immediately, citing a risk to its food security, partly due to the war in Ukraine.