A shock rise in inflation, up from 2.5%, has rattled markets