Inflation held steady at historically high levels in April, suggesting that price increases could last much longer than expected.