Small business optimism fell last month, as American companies struggle to hire new workers amid persistent inflation.