FoundationalECGNet: A Lightweight Foundational Model for ECG-based Multitask Cardiac Analysis