Clouting is likely to mean hammering clouts (i.e. hobnails) into St Peter's shoes.
With the example of all the other impossible/ridiculous things in the song, what could be better at helping St Peter to walk on water than an array of heavy nails to stop the soles of his boots wearing out? :-)