The president of the National Farmers' Union (NFU) has warned he cannot rule out food shortages if farmers go on strike.