A new study has explored patterns in academic grades of 1.6 million students, showing that girls and boys perform very similarly in STEM – including at the top of the class.