Semiclassical partition function for strings dual to Wilson loops with small cusps in ABJM