EU energy ministers have agreed to a cap on natural gas prices