Behavioral and social mechanisms behind pattern formation: an experimental study of animal movement