Ceremony held to mark handover of Cork Harbour forts