GCSE pupils abandon foreign languages