Search for new phenomena using the invariant mass distribution of same-flavour opposite-sign dilepton pairs in events with missing transverse momentum in \(\sqrt{s}=13\) \(\text {Te}\text {V}\) pp collisions with the ATLAS detector