Bill Paxton's cause of death has been confirmed as a stroke following complications with heart surgery.