A pageant of hats, ancient and modern