Pressure induced hexagonal to cubic phase transformation in erbium trihydride