I have no idea how long shaking hands has been common. It seems so natural now, but here must have been a time where people just stood awkwardly a couple feet away and said hello without touching.
While you wait for answers, you might want to check out some previous threads on handshakes: