Walking style can predict memory, thinking decline: study