Time Series Analysis of Long Memory versus Structural Breaks: A Time-Varying Memory Approach