Through stories, recipes and fascinating anecdotes, a new book delves into the spice’s rich legacy, uncovering its role in trade, medicine, and cuisine