The former boss of HIV Scotland has admitted embezzling £5,000 from the charity during his time as chief executive.