Israels militär har lovat att utreda soldater som misstänks för krigsbrott eller andra allvarliga oegentligheter.