Constraining modified gravitational theories by weak lensing with Euclid