Legalising sex work would slash HIV toll, study says