Mass and Rate of Hierarchical Black Hole Mergers in Young, Globular and Nuclear Star Clusters