Factory output shrinks, spike in retail inflation