When might a cane be necessary for walking following a stroke?