Government promises to allow soldiers under 18 to leave forces