EU nations agree to ration gas amid Russian cut-off fears