COSMOS: Catching Out-of-Context Misinformation with Self-Supervised Learning