Cambridge maintains its top credit scores for the 25th year in a row and is one of only 24 cities nationwide with a trifecta of highest-possible ratings, said City Manager Yi-An Huang, but several factors threaten the city’s long-term financial standing.