Globally maximal arithmetic groups