Context-dependent navigation in a collectively foraging species of ant, Messor cephalotes