A dislocation pile-up model for the yield stress of a composite