Rotational phase transitions and melting in a 2D system of hard cyclic pentamers