Prophage-encoded phage defence proteins with cognate self-immunity