After declining for three months, retail inflation rose to 7 per cent in August due to higher food prices.