Early medication for HIV is cost-effective: study