How cognitive information drives movement in living organisms : A statistical physics approach from the individual to the collective