Your insurance may have provision for alternative accommodation if it really will take ages, check your policy.
If you are renting, you landlord's policy should have similar provisions. Also, if they are dragging their heels over repair/replacement, get I touch with the likes of Shelter.