From Samson’s mighty mane to Rapunzel’s tumbling tresses, hair has long held a near-mythical status.