Unfortunately, Michael does not wear any hats in GTA 5 story mode. He cannot buy any hats despite the massive collections in the clothes stores. His only available option is a baseball cap.