When and why did men stop wearing hats?

Why did men stop wearing hats? I saw a video clip recently of the crowd at the 1923 FA Cup final and virtually every man’s head was covered. These days, almost no one wears a hat as a matter of course. When did this change occur – and what prompted it? Dawn Welcher, Connah’s Quay