U.S. ends Pentagon’s $500m program to train Syrian rebels