The French economy had a weak start to the year, and is expected to struggle ahead as a jump in energy prices weakens consumer spending.