A quarter of Japanese people under 40 who have tied the knot found their spouse through a dating app, a recent survey found.