Kohli will make a good captain in all formats: Dhoni