The idea of doctors washing their hands before surgery or delivering babies was laughed at in the mid-1800s.