The zCOSMOS 10k-sample: the role of galaxy stellar mass in the colour-density relation up to z ~ 1