Higher-dimensional analogues of the modular and Picard groups