American Idol judge Jennifer Lopez and her singer husband Marc Anthony have announced they are to separate calling the decision "difficult" and "painful".