France will freeze natural gas and electricity costs for consumers for the coming months amid growing concern about rising global energy prices, the prime minister announced.