The formation and evolution of protostellar discs; three-dimensional adaptive mesh refinement hydrosimulations of collapsing, rotating Bonnor–Ebert spheres