Serbian president plans to resign