Learning Treatment Effects in Panels with General Intervention Patterns