The way you walk can tell a lot about how you're feeling, according to a new study.