Symmetry TFTs for 3d QFTs from M-theory