SN 2013dx associated with GRB 130702A: a detailed photometric and spectroscopic monitoring and a study of the environment