DAISM: Digital Approximate In-SRAM Multiplier-based Accelerator for DNN Training and Inference