Unitary structure in representations of infinite-dimensional groups and a convexity theorem