Inflation accelerates to 5.4% in May