Two soldiers have been arrested after a Scots teenage recruit was sexually assaulted during his basic training.