UK inflation accelerates close to three-year peak