Phase transitions and geothermodynamics of black holes in dRGT massive gravity