Jessica Lack selects 10 great works that chart artists’ shifting relationships with the sea, from the Middle Ages to today