A branch of the popular Costa Coffee chain in York has scored poorly for food hygiene.