India has overtaken China to become the world's most populous nation for the first time, United Nations population estimates have revealed.