Emergence of hysteresis loop in social contagions on complex networks