Two ideas for you---
Lots of steam. Use a thin press cloth between iron and hat. Stuff hat with clean towels.
Also, to stiffen it dissolve water soluable embroidery stabilizer to make a starch-like product. Soak the hat fabric with it. Reshap hat as it dries. You could hasten the drying with a blow dryer set on low temp.