Didi Global Inc.’s net loss grew in the March quarter, after climbing marketing costs and losses on its stake in electric vehicle-maker XPeng Inc. outweighed a revenue boost.