There are times when “The Five-Year Engagement” feels like a relic, particularly the belief that any use of the F word is instantaneously funny.