Foreigners convicted of nearly a quarter of sex crimes