Tumour lineage shapes BRCA-mediated phenotypes