You can buy hats in Argent City from the odd little hat seller, who is usually found near the fountain.