A 5g sample of a hydrate of BaCl₂ was heated and only 4.3g of the anhydrous salt remained. Calculate the percentage of water which was present in the hydrated sample.