A man is recovering in hospital after he was stabbed on O'Connell Street in Dublin city centre this afternoon.