Some antidepressants could potentially be used to treat a wide range of diseases caused by bacteria living within cells, according to researchers.