Topological mechanics of gyroscopic metamaterials