The U.S. is losing its standing as a force for good on the world stage, according to a global survey.