EU energy ministers agree on gas price cap