A regularized alternating direction method of multipliers for a class of nonconvex problems