Text this: Enhancing network modularity to mitigate catastrophic forgetting