Galaxy properties in different environments up to z∼ 3 in the GOODS NICMOS Survey