Method for depuration of wastewaters with reduction of sludge production and plant thereof