German inflation surged by 7.9% in the year to August, as the surging energy prices add pressure on households' bills.