Brands are doubling down on affiliate marketing amid rising costs across other channels, with influencers taking an increasing share of budgets.