One of the unique hats that Napoleon Bonaparte was believed to have worn when he ruled 19th century France was bought by an anonymous buyer.