An extension of Hawkes theorem on the Hausdorff dimension of a Galton–Watson tree