Ben Roberts-Smith, the former SAS corporal accused of five counts of war crime — murder during the Afghanistan war, has been granted bail.