HIV deaths and infections will rise as a result of cuts to foreign aid, a study has warned.