An analogue of Fekete's lemma for subadditive functions on cancellative amenable semigroups