To return the Master Sword to its pedestal, you first need to defeat the Forest Temple. Once that's done, you can put it back by pressing the "A" button (or possibly "B").