"Oft" is an archaic/poetic contraction of "often"—used frequently in Shakespeare for metrical convenience (monosyllabic vs. disyllabic "often"). It appears over 300 times in the canon.
In iambic pentameter, "oft" (one stressed syllable) substitutes for "often" (two syllables: OF-ten) when a line requires a strong monosyllable:
"And oft / my soul / hath been / re-fresh'd" (scans as five iambs)
vs.
"And of-ten / my soul / hath been / re-fresh'd" (would create an anapest or require elision)
The example in the source (Romeo and Juliet "O, she is rich in beauty...") does not actually contain "oft"—it may be a misattribution. The word appears elsewhere in the play (e.g., 2.2 "Oft have I heard").