Gelfand models and Robinson-Schensted correspondence