Canada’s largest pension fund agreed to pay $2.5bn for a minority stake in Glencore’s agriculture unit as the commodity trader and miner works to reduce its debt burden.