U.S. President Barack Obama urged India to protect its diversity in his final address of a three-day visit on Tuesday.