Conditional investment strategy in evolutionary trust games with repeated group interactions