Muon $g-2$ and Dark Matter in the MSSM