Learning with Group Invariant Features: A Kernel Perspective