Wholesale prices have gained at the fastest pace in over three decades, adding pressure on businesses to pass on high costs to consumers.