Berry-phase effect in anomalous thermoelectric transport