Global structure and kinematics of stellar haloes in cosmological hydrodynamic simulations