New contraceptive device 'protects against HIV'