UK weather warning issued amid threats of flooding