Text this: Disease dynamics and costly punishment can foster socially imposed monogamy