Billy Mailman's answer is rather complete, but just simplifying things, the following worked well for me:
If you are playing on a computer:
- Open the console
- Right click on Serana OR type "prid 02002b74"
prid 02002b74
and hit enter to select Serana - Type "Setpqv DLC1NPCMentalModel Lockedin_var False"
Setpqv DLC1NPCMentalModel Lockedin_var False
- Hit enter key
This will cause the "Follow me" dialogue option to reappear.
This solution was found on this link.