A mechanical role for the chemotaxis system in swarming motility