President Barack Obama has ruled out deploying US ground troops in Syria and says military efforts alone cannot solve the country's problems.