Marks & Spencer Group Plc’s grocery sales rose in the last three months even as the British retailer tackled a major cyberattack that crippled some of its systems.