Giving out cash can be an effective tool in combating sexually transmitted infections in rural Africa, according to a new study.