UK's annual inflation rises to 3.1% in August