Advertising cooperative phenotype through costly signals facilitates collective action