Mid-Atlantic coast under flood warnings as Ophelia weakens to post-tropical low and moves north