The structure of finite groups of conjugate rank 2