If diplomacy fails, US remains prepared to act on Syria: Obama