From tiara to trilby and pork pie to Panama, a new exhibition will celebrate the crowning glory of any outfit - the hat.