Hats have been a popular trend for many years, be it styled for the red carpet or a sunny day out.