Prince Harry has criticised the "weak moral character" in the world in his speech to open the 2025 Invictus Games.