Indonesia's Vice President Gibran Rakabuming Raka has resigned amid a dispute over his educational qualifications.