Study of hadron properties in cold nuclear matter with HADES