Girls have fallen behind boys in both maths and science subjects, making Australia's education gender gap the worst in the world, the latest results from a long-running international test show.