Alignments of galaxy group shapes with large-scale structure