You aren't the rapist. So it can't be your fault. And your friend isn't the rapist either, so it's not your friend's fault.I can't really get away from the feeling that this whole thing my fault.
The only person who can be assigned blame here is the rapist. Because everything else? Is a result of that event.