The risk of flooding from River Ouse in York has been upgraded from an alert to a warning.