Within-host competition determines reproductive success of temperate bacteriophages