Rich nations to end farm subsidies