Relations between the United States and Turkey are on a strong footing, U.S. President Barack Obama has said during his first visit to a predominantly Muslim country.