Ramsey Theorems for Trees and a General 'Private Learning Implies Online Learning' Theorem