Group Layers are not supported with Feature Services.
You can publish group layers as part of a map service hosted on ArcGIS Server.
If this is functionality that you would like to see in the future, please go ahead and promote the following idea on the ideas site: ArcGIS Idea - Group layers for ArcGIS online