My father could swim well when he was young.

Literal

Father [topic-は] young time, skillfully swim [could-ことができた].

~ことができた is the formal past potential — 'was able to.' 上手に (skillfully) describes the manner.