An investigation into the evolution of hierarchy and its consequences for evolvability