The University of Oxford has been named the best in the world for two subjects in international rankings.