A triple killer raped his ex-girlfriend in a “violent, sexual act of spite” during an attack which saw him murder her and her sister with a crossbow and their mother with a butcher’s knife, a court has heard.