Singularities of the wave trace near cluster points of the length spectrum