On the subgroup perfect codes in Cayley graphs