Self-Supervised Interpretable End-to-End Learning via Latent Functional Modularity