Coating made of hafnium oxide or hydroxides