Elastic anisotropy and magnetic phase transition of yttrium garnet ferrite