Optimal Interventions in Markets with Adverse Selection